import { _decorator, Component, Label, Node } from 'cc';
import { Enemy } from './Enemy';
const { ccclass, property } = _decorator;

@ccclass('Boos')
export class Bood extends Enemy {

    @property(Label)
    hpLabel:Label = null
    start(){
        super.start()
    }

    update(deltaTime: number) {
        super.update(deltaTime)
        this.hpLabel.string = `HP:${this.hp}`
        
    }
}


